<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站文章推荐</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background-color: #f8f9fa;
            color: #333;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .section-title {
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #0d6efd;
        }
        
        .article-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 1.5rem;
        }
        
        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.12);
        }
        
        .article-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #eee;
        }
        
        .article-body {
            padding: 1.25rem;
        }
        
        .article-footer {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: #6c757d;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            color: #333;
        }
        
        .post-time {
            font-size: 0.85rem;
            color: #6c757d;
        }
        
        .article-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            transition: color 0.2s ease;
        }
        
        .article-title a {
            color: #212529;
            text-decoration: none;
        }
        
        .article-title a:hover {
            color: #0d6efd;
        }
        
        .article-excerpt {
            color: #495057;
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        
        .image-grid {
            display: grid;
            gap: 4px;
            margin-bottom: 1rem;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .image-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .grid-1 {
            grid-template-columns: 1fr;
            aspect-ratio: 16/9;
        }
        
        .grid-2 {
            grid-template-columns: repeat(2, 1fr);
            aspect-ratio: 16/9;
        }
        
        .grid-3 {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            aspect-ratio: 4/3;
        }
        
        .grid-3 img:first-child {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
        }
        
        .grid-4 {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            aspect-ratio: 16/9;
        }
        
        .stats {
            display: flex;
            gap: 1.5rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .actions {
            display: flex;
            gap: 1rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #6c757d;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            transition: color 0.2s ease;
        }
        
        .action-btn:hover {
            color: #0d6efd;
        }
        
        .action-btn.liked {
            color: #dc3545;
        }
        
        .action-btn.bookmarked {
            color: #ffc107;
        }
        
        /* 列表布局特定样式 */
        .list-layout .article-card {
            display: flex;
            flex-direction: column;
        }
        
        /* 网格布局特定样式 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-layout .article-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .article-body {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .article-excerpt {
            flex: 1;
        }
        
        /* 混合布局特定样式 */
        .hybrid-layout .featured-article {
            grid-column: 1 / -1;
        }
        
        .hybrid-layout {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 1.5rem;
        }
        
        .hybrid-layout .article-card {
            margin-bottom: 0;
        }
        
        .col-span-8 {
            grid-column: span 8;
        }
        
        .col-span-4 {
            grid-column: span 4;
        }
        
        .col-span-6 {
            grid-column: span 6;
        }
        
        @media (max-width: 992px) {
            .hybrid-layout .col-span-8,
            .hybrid-layout .col-span-4,
            .hybrid-layout .col-span-6 {
                grid-column: span 12;
            }
        }
    </style>
</head>
<body>
    <div class="container py-5 px-4">
        <h1 class="mb-5 text-center">社交文章推荐</h1>
        
        <!-- 无图片文章列表 -->
        <section class="mb-8">
            <h2 class="section-title">
                <i class="fas fa-align-left me-2"></i>无图片文章
            </h2>
            <div class="list-layout">
                <!-- 无图片文章1 -->
                <div class="article-card">
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/64/100/100" alt="张明">
                            </div>
                            <div>
                                <div class="author-name">张明</div>
                                <div class="post-time">2小时前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">人工智能如何改变我们未来的工作方式</a>
                        </h3>
                        <p class="article-excerpt">随着人工智能技术的快速发展，我们的工作方式正在发生深刻变革。从自动化流程到智能决策支持，AI正在各个行业发挥越来越重要的作用。本文探讨了AI对就业市场的影响，以及未来工作者需要具备的新技能。</p>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>1.2k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>48</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>128</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-share-square"></i>
                                <span>分享</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片文章2 -->
                <div class="article-card">
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/26/100/100" alt="李华">
                            </div>
                            <div>
                                <div class="author-name">李华</div>
                                <div class="post-time">昨天 15:30</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">远程工作的优缺点及提高效率的方法</a>
                        </h3>
                        <p class="article-excerpt">近年来，远程工作已成为一种趋势，特别是在全球疫情之后。虽然远程工作提供了更大的灵活性，但也带来了新的挑战。本文分享了远程工作的优缺点分析，以及如何有效管理远程团队和提高个人工作效率的实用技巧。</p>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>3.5k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>126</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>356</span>
                            </button>
                            <button class="action-btn bookmarked">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-share-square"></i>
                                <span>分享</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 单图文章列表 -->
        <section class="mb-8">
            <h2 class="section-title">
                <i class="fas fa-image me-2"></i>单图文章
            </h2>
            <div class="grid-layout">
                <!-- 单图文章1 -->
                <div class="article-card">
                    <div class="image-grid grid-1">
                        <img src="https://picsum.photos/id/1/600/400" alt="城市夜景">
                    </div>
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/91/100/100" alt="王芳">
                            </div>
                            <div>
                                <div class="author-name">王芳</div>
                                <div class="post-time">3小时前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">现代城市建筑设计中的可持续发展理念</a>
                        </h3>
                        <p class="article-excerpt">随着全球气候变化问题日益严重，可持续发展已成为现代建筑设计的核心原则。本文介绍了绿色建筑的关键技术和设计理念，以及如何在城市规划中实现环境、社会和经济的平衡发展。</p>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>2.8k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>76</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>215</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 单图文章2 -->
                <div class="article-card">
                    <div class="image-grid grid-1">
                        <img src="https://picsum.photos/id/20/600/400" alt="咖啡与笔记本电脑">
                    </div>
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/55/100/100" alt="赵伟">
                            </div>
                            <div>
                                <div class="author-name">赵伟</div>
                                <div class="post-time">5小时前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">数字游民：如何在旅行中维持高效工作</a>
                        </h3>
                        <p class="article-excerpt">数字游民 lifestyle 正变得越来越流行，越来越多的人选择摆脱固定办公室的束缚，在世界各地工作和旅行。本文分享了成为成功数字游民的必备工具、时间管理技巧和最佳实践。</p>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>4.2k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>156</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>528</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 单图文章3 -->
                <div class="article-card">
                    <div class="image-grid grid-1">
                        <img src="https://picsum.photos/id/96/600/400" alt="健康饮食">
                    </div>
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/65/100/100" alt="刘静">
                            </div>
                            <div>
                                <div class="author-name">刘静</div>
                                <div class="post-time">昨天 10:15</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">忙碌工作族的健康饮食指南：简单易行的营养方案</a>
                        </h3>
                        <p class="article-excerpt">对于忙碌的上班族来说，保持健康饮食往往是一项挑战。本文提供了实用的健康饮食方案，包括快速准备的营养早餐、便携午餐创意和简单的晚餐食谱，帮助工作族在忙碌中也能保持健康饮食习惯。</p>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>6.7k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>214</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>876</span>
                            </button>
                            <button class="action-btn bookmarked">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 多图文章混合布局 -->
        <section class="mb-8">
            <h2 class="section-title">
                <i class="fas fa-th me-2"></i>多图文章
            </h2>
            <div class="hybrid-layout">
                <!-- 2图文章 -->
                <div class="article-card col-span-8">
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/60/100/100" alt="陈明">
                            </div>
                            <div>
                                <div class="author-name">陈明</div>
                                <div class="post-time">3天前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">探索日本京都的传统文化与现代创新</a>
                        </h3>
                        <p class="article-excerpt">京都是日本文化的瑰宝，这里既有千年历史的神社寺庙，也有充满创意的现代设计。本文带您探索京都的传统文化与现代创新如何和谐共存，从古老的茶道仪式到现代的设计工作室，展现这座城市的独特魅力。</p>
                        <div class="image-grid grid-2">
                            <img src="https://picsum.photos/id/42/600/400" alt="京都寺庙">
                            <img src="https://picsum.photos/id/49/600/400" alt="京都现代设计">
                        </div>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>8.9k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>327</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>1254</span>
                            </button>
                            <button class="action-btn bookmarked">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-share-square"></i>
                                <span>分享</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 3图文章 -->
                <div class="article-card col-span-4">
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/22/100/100" alt="杨丽">
                            </div>
                            <div>
                                <div class="author-name">杨丽</div>
                                <div class="post-time">2天前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">三种提升摄影技巧的实用方法</a>
                        </h3>
                        <p class="article-excerpt">无论你使用专业相机还是手机，这些实用的摄影技巧都能帮助你提升照片质量。从构图到光线利用，简单有效的方法让你的照片更具吸引力。</p>
                        <div class="image-grid grid-3">
                            <img src="https://picsum.photos/id/28/600/400" alt="摄影技巧1">
                            <img src="https://picsum.photos/id/42/600/400" alt="摄影技巧2">
                            <img src="https://picsum.photos/id/65/600/400" alt="摄影技巧3">
                        </div>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>3.2k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>98</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>421</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 4图文章 -->
                <div class="article-card col-span-6">
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/88/100/100" alt="刘强">
                            </div>
                            <div>
                                <div class="author-name">刘强</div>
                                <div class="post-time">4天前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">四季徒步：一年中最佳的自然探索体验</a>
                        </h3>
                        <p class="article-excerpt">每个季节都有其独特的自然景观和徒步体验。本文推荐了四季不同的徒步路线，从春天的花海到冬天的雪景，让你全年都能享受大自然的美好。</p>
                        <div class="image-grid grid-4">
                            <img src="https://picsum.photos/id/15/600/400" alt="春季徒步">
                            <img src="https://picsum.photos/id/16/600/400" alt="夏季徒步">
                            <img src="https://picsum.photos/id/17/600/400" alt="秋季徒步">
                            <img src="https://picsum.photos/id/18/600/400" alt="冬季徒步">
                        </div>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>5.6k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>178</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>754</span>
                            </button>
                            <button class="action-btn bookmarked">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 2图文章 -->
                <div class="article-card col-span-6">
                    <div class="article-header">
                        <div class="author-info">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/id/77/100/100" alt="孙梦">
                            </div>
                            <div>
                                <div class="author-name">孙梦</div>
                                <div class="post-time">1周前</div>
                            </div>
                        </div>
                    </div>
                    <div class="article-body">
                        <h3 class="article-title">
                            <a href="#">传统与现代：东西方烹饪技巧的融合创新</a>
                        </h3>
                        <p class="article-excerpt">随着全球化的发展，东西方烹饪技巧正在相互融合，创造出令人惊喜的美食体验。本文探讨了如何将传统烹饪方法与现代技术相结合，以及不同文化背景下食材搭配的创新思路。</p>
                        <div class="image-grid grid-2">
                            <img src="https://picsum.photos/id/292/600/400" alt="东方美食">
                            <img src="https://picsum.photos/id/431/600/400" alt="西方美食">
                        </div>
                    </div>
                    <div class="article-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>7.3k</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>245</span>
                            </div>
                        </div>
                        <div class="actions">
                            <button class="action-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>987</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeButtons = document.querySelectorAll('.action-btn:not(.liked) i.far.fa-thumbs-up');
            likeButtons.forEach(button => {
                button.parentElement.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countSpan.textContent = parseInt(countSpan.textContent) + 1;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countSpan.textContent = parseInt(countSpan.textContent) - 1;
                    }
                });
            });
            
            // 收藏功能
            const bookmarkButtons = document.querySelectorAll('.action-btn:not(.bookmarked) i.far.fa-bookmark');
            bookmarkButtons.forEach(button => {
                button.parentElement.addEventListener('click', function() {
                    this.classList.toggle('bookmarked');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('bookmarked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                });
            });
            
            // 已点赞按钮功能
            const likedButtons = document.querySelectorAll('.action-btn.liked');
            likedButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.remove('liked');
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    countSpan.textContent = parseInt(countSpan.textContent) - 1;
                });
            });
            
            // 已收藏按钮功能
            const bookmarkedButtons = document.querySelectorAll('.action-btn.bookmarked');
            bookmarkedButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.remove('bookmarked');
                    const icon = this.querySelector('i');
                    
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                });
            });
        });
    </script>
</body>
</html>

